package test.ground.log;

import com.wang.tool.monitor.aop.Monitor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Random;

/**
 * @Description
 * @Author shaopeng
 * @Date 2022/5/10
 * @Version 1.0
 */
@Component
public class LogServiceImpl implements LogService {

    @Monitor(group = "l1")
    @Override
    public Object t1(String id, String name) {
        HashMap<Object, Object> map = new HashMap<>();
        map.put("key","val");
        if(new Random().nextBoolean()){
            throw new IllegalArgumentException("key1331");
        }
        return map;
    }



}
